package com.qf.dao.impl;

import com.qf.dao.WeatherDao;

import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebService;

/**
 * 2019/11/27
 * Administrator
 * webServer001
 * 面向对象面向君  不负代码不负卿
 */

@WebService(targetNamespace = "http://a.b.c.d",
        name = "weatherPortType",
        portName = "weatherPortName",
        serviceName = "weatherDaoService")
public class WeatherDaoImpl implements WeatherDao {
    @WebMethod(operationName = "getwth")
    public String getweather(@WebParam(name="chengshi") String city) {
        if(city.equals("北京")){
            return "北京晴天";
        }else if(city.equals("南京")){
            return "南京小雨";
        }
        return "没有对应城市的信息";
    }
}
